package com.base;

import java.util.LinkedList;

/**
 * Created by yijy on 2018/2/28.
 * 用linkedList实现队列
 */
public class Queue {

    private LinkedList linkedList;

    public Queue() {
        this.linkedList = new LinkedList();
    }

    public void addFirst(Object obj){
        linkedList.addFirst(obj);
    }

    public void addLast(Object obj){
        linkedList.addLast(obj);
    }

    public boolean isNull(Object o) {
        return linkedList.isEmpty();
    }
}
